import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router/index.js";
import { createPinia } from "pinia";
import { registerMicroApps, start } from "qiankun";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";

registerMicroApps([
  {
    name: "sub-vue",
    entry: "//192.168.0.116:2334/",
    container: "#sub-vue",
    activeRule: "/sub-vue",
  },
]);

start();

const pinia = createPinia();

createApp(App)
  .use(router)
  .use(pinia)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .mount("#app");
